<template>
  <div id="pre-view"></div>
</template>
<script lang="ts" setup>
import { nextTick, onBeforeUnmount, onMounted } from "vue";
import { initExcel, univerAPI, dispose, sourceUniver } from "./univer";
import TestJson from "../count.json";

nextTick(() => {
  initExcel("pre-view", TestJson);
});

onMounted(() => {
  console.log(  document.getElementById('pre-view')  )
  console.log("univerAPI: ", univerAPI);
  console.log("sourceUniver: ", sourceUniver)
});
onBeforeUnmount(()=>{
  dispose()
})
</script>

<style scoped>
#pre-view {
  height: 80vh;
}
</style>
